<?php


$db_userName = "root";
$db_password = "";
$db_name = "where_is_my_money_db";


	$conn = @ mysql_connect("localhost",$db_userName,$db_password) or die ("数据库连接失败");
	mysql_select_db($db_name,$conn);
	mysql_query("SET NAMES 'UTF8'");
    
    
    function output_mysqlerror()
    {
        echo mysql_error();
    }
	//header("Content-type: text/html; charset=utf-8");


/*
$sql = "select * from bookinfo";
if ($query = mysql_query($sql)) {
    $cat_number = mysql_num_rows($query);
    echo $cat_number;
}
*/
?>